//
//  TenderRecordCell.m
//  DianDangDai
//
//  Created by bhf on 2017/12/17.
//  Copyright © 2017年 bhf. All rights reserved.
//

#import "TenderRecordCell.h"

@implementation TenderRecordCell

- (void)awakeFromNib {
    [super awakeFromNib];
   // [self setNeedsDisplay];
   
    // Initialization code
}

- (void)setRow:(NSInteger)row {
    _row = row;
    UIFont *font;
    UIColor *textColor;
    if (_row == 0) {
        font = [UIFont systemFontOfSize:15.0];
        textColor = [UIColor colorWithHex:@"#333333"];
    } else {
        font = [UIFont systemFontOfSize:12.0];
        textColor = [UIColor colorWithHex:@"#999999"];
    }
    _tender.font = font;
    _price.font = font;
    _time.font = font;
    _tender.textColor = textColor;
    _price.textColor = textColor;
    _time.textColor = textColor;
    
}

- (void)setModel:(TenderModel *)model {
  
        _tender.text = model.reality_name;
        _price.text = model.invest_amount;
        _time.text = model.time;
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

/*- (void)drawRect:(CGRect)rect {
    // Drawing code.
    //获得处理的上下文
    CGContextRef context = UIGraphicsGetCurrentContext();
    //设置线条样式
    CGContextSetLineCap(context, kCGLineCapSquare);
    //设置线条粗细宽度
    CGContextSetLineWidth(context, 1.0);
    //设置颜色
    CGContextSetRGBStrokeColor(context, 1.0, 0.0, 0.0, 1.0);
    //开始一个起始路径
    CGContextBeginPath(context);
    //起始点设置为(0,0):注意这是上下文对应区域中的相对坐标
    CGContextMoveToPoint(context, 0, 0);
    //设置下一个坐标点
    CGContextAddLineToPoint(context, 100, 100);
    //设置下一个坐标点
    CGContextAddLineToPoint(context, 0, 150);
    //设置下一个坐标点
    CGContextAddLineToPoint(context, 50, 180);
    //连接上面定义的坐标点
    CGContextStrokePath(context);
   
}
*/
@end
